package com.zlm.design.combined.clac;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zlm
 * @date 2025/4/21
 */
public class Main {
    public static void main(String[] args) {

        // 1+15*(9+4+(1+5)) +6

        Map<String,Integer> param = new HashMap<>();
        param.put("a", 6);
        ExpressionParser expressionParser = new ExpressionParser("1+15*(9+4+(1+5))+a+6",param);
        Expression parse = expressionParser.parse();
        System.out.println(parse.getValue());
        System.out.println(1+15*(9+4+(1+5))+6 +6);

    }
}
